package com.java.bean;

import java.util.Arrays;

public class Joke {

	private String status;
	private String desc;
	private Detail detail[];
	/**
	 * {
	    "status": "000000",        ----返回状态，六个0表示成功
	    "desc": null,              ----返回结果描述，六个0表示成功
	    "detail": [                ----具体笑话列表，是一个数组
	        {
	            "id": 1115,        ----数据库自增id，没有任何意义
	            "xhid": "90851",   ----笑话id，判断笑话新旧用的
	            "author": "xxx",   ----笑话作者
	            "content": "xxx",  ----笑话内容
	            "picUrl": "",      ----笑话的图片（如果有）
	            "status": "1"      ----笑话状态（能返回的都是1）
	        },
	        {
	            "id": 1110,
	            "xhid": "90850",
	            "author": "xxx",
	            "content": "xxx",
	            "picUrl": "",
	            "status": "1"
	        }
	    ]
	}

	 */
	public Joke() {
		super();
		// TODO 自动生成的构造函数存根
	}
	public Joke(String status, String desc, Detail[] detail) {
		super();
		this.status = status;
		this.desc = desc;
		this.detail = detail;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Detail[] getDetail() {
		return detail;
	}
	public void setDetail(Detail[] detail) {
		this.detail = detail;
	}

	@Override
	public String toString() {
		return "Joke [status=" + status + ", desc=" + desc + ", detail="
				+ Arrays.toString(detail) + "]";
	}
}
